package Verify

import "github.com/gogf/gf/v2/frame/g"

type MainUserVerifyReq struct {
	g.Meta   `path:"/api/auth/mainlogin" method:"post"`
	Username string `v:"required" p:"username" dc:"可以是username,qid或者email"`
	Nametag  string `v:"required" p:"nametag" dc:"只能是name,qid或者email"`
	UserPwd  string `v:"required|password" p:"userpwd" dc:"用户密码"`
}

type MainUserVerifyRes struct {
	Qid   uint   `json:"qid"`
	Name  string `json:"name"`
	Token string `json:"token"`
}
